const wsPort = process.env.VUE_APP_URL.replace('http', 'ws')

// 初始化websocket
const websocket = url => {
  const ws = new WebSocket(wsPort + url)
  return ws
}
export { websocket }
